package com.clg.common.tools;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by usercai on 2016/9/29.
 *
 * 在AppHandler设置后，可获取Request
 */
public class RequestKit {
    private static ThreadLocal<HttpServletRequest> tl = new ThreadLocal<HttpServletRequest>();

    public static void put(HttpServletRequest s) {
        tl.set(s);
    }

    public static HttpServletRequest get() {
        return tl.get();
    }

    public static void remove() {
        tl.remove();
    }
}